package com.teatrace.model.process;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.teatrace.model.base.Storage;
import com.teatrace.model.pack.PackingFlow;
@Entity
@Table(name="semifinished_product_package")
public class SemiFinishedProductPackage {
	
	@Id
	@Column(name="semifinished_product_package_id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private long Id;
	
	@Column(columnDefinition="datetime")
	private Date time;
	
	private String description;
	private String weight; 
	private String quality;
	private String wrapper;
	
	@Column(name="storage_status")
	private int storageStatus;
	
	@Column(name="tea_type")
	private String teaType;
	
	@ManyToOne
	@JoinColumn(name="storage_id")	
	private Storage storage;//
	
	@ManyToOne
	@JoinColumn(name="packing_flow_id")
	private PackingFlow packingFlow;//
	
	public long getId() {
		return Id;
	}
	public void setId(long id) {
		Id = id;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getWeight() {
		return weight;
	}
	public void setWeight(String weight) {
		this.weight = weight;
	}
	public String getQuality() {
		return quality;
	}
	public void setQuality(String quality) {
		this.quality = quality;
	}
	public String getWrapper() {
		return wrapper;
	}
	public void setWrapper(String wrapper) {
		this.wrapper = wrapper;
	}
	public int getStorageStatus() {
		return storageStatus;
	}
	public void setStorageStatus(int storageStatus) {
		this.storageStatus = storageStatus;
	}
	public String getTeaType() {
		return teaType;
	}
	public void setTeaType(String teaType) {
		this.teaType = teaType;
	}
	public Storage getStorage() {
		return storage;
	}
	public void setStorage(Storage storage) {
		this.storage = storage;
	}
	public PackingFlow getPackingFlow() {
		return packingFlow;
	}
	public void setPackingFlow(PackingFlow packingFlow) {
		this.packingFlow = packingFlow;
	}
}
